package com.qf.entity;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
*
* @TableName order_refund
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderRefund {
    /**
     * 需要额外添加的两个字段
     */
    private String username;
    private String orderNo;


    /**
    * 退款申请ID
    */
    private Long id;
    /**
    * 订单ID
    */
    private Long orderId;
    /**
    * 申请用户ID
    */
    private Long userId;
    /**
    * 退款金额
    */
    private BigDecimal refundAmount;
    /**
    * 退款原因
    */
    private String reason;
    /**
    * 退款状态 0待审核 1退款中 2退款成功 3拒绝
    */
    private Integer status;
    /**
    *
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdAt;
    /**
    *
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date refundAt;
    /**
    * 暂定列
    */
    private String isDeleted;
    /**
    * 暂定列
    */
    private String attr2;
    /**
    * 暂定列
    */
    private String attr3;
    /**
    * 暂定列
    */
    private String attr4;
}
